# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1293295152.02977
_template_filename=u'/home/sunzheng/Projects/FidoWeb/FidoWeb_0.98/fidoweb/templates/map/maploc_module_gallery.mako'
_template_uri=u'map/maploc_module_gallery.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1

        c.jsFiles.append('/plugins/jquery_lightbox/js/jquery.lightbox.min.js')
        c.cssFiles.append('/plugins/jquery_lightbox/css/jquery.lightbox.min.css')
        
        
        # SOURCE LINE 4
        __M_writer(u'\n<div id="gallery">\n\t<h2>\u56fe\u96c6</h2>\n\t<script type="text/javascript">\n\t\t$(document).ready(function(){\n\t\t\t$("a.gallery_item").lightBox();\n\t\t});\n\t</script>\n')
        # SOURCE LINE 12
        if c.pics.count() == 0 :
            # SOURCE LINE 13
            __M_writer(u'\t\t<div style="padding-left:10px;">\u6682\u65e0\u56fe\u7247\u3002</div>\n')
            # SOURCE LINE 14
        else :
            # SOURCE LINE 15
            for pic in c.pics :
                # SOURCE LINE 16
                __M_writer(u'\t\t\t<a class="gallery_item" rel="lightbox[gl]" href="')
                __M_writer(filters.decode.utf8(pic.largePic))
                __M_writer(u'"><img src="')
                __M_writer(filters.decode.utf8(pic.smallPic))
                __M_writer(u'" alt="" style="border:1px solid #BBBBBB;margin:7px 5px 7px 0;padding:5px;max-width:160px;"></img></a>\n')
                pass
            pass
        # SOURCE LINE 19
        __M_writer(u'</div>')
        return ''
    finally:
        context.caller_stack._pop_frame()


